package mysql

import "github.com/zeromicro/go-zero/core/stores/sqlx"

var _ TbDailyBaseInfoModel = (*customTbDailyBaseInfoModel)(nil)

type (
	// TbDailyBaseInfoModel is an interface to be customized, add more methods here,
	// and implement the added methods in customTbDailyBaseInfoModel.
	TbDailyBaseInfoModel interface {
		tbDailyBaseInfoModel
		withSession(session sqlx.Session) TbDailyBaseInfoModel
	}

	customTbDailyBaseInfoModel struct {
		*defaultTbDailyBaseInfoModel
	}
)

// NewTbDailyBaseInfoModel returns a model for the database table.
func NewTbDailyBaseInfoModel(conn sqlx.SqlConn) TbDailyBaseInfoModel {
	return &customTbDailyBaseInfoModel{
		defaultTbDailyBaseInfoModel: newTbDailyBaseInfoModel(conn),
	}
}

func (m *customTbDailyBaseInfoModel) withSession(session sqlx.Session) TbDailyBaseInfoModel {
	return NewTbDailyBaseInfoModel(sqlx.NewSqlConnFromSession(session))
}
